<template>
  <a-drawer
    v-model:visible="isvisible"
    :destroyOnClose="true"
    width="90vw"
    class="custom-class"
    style="zIndex:1200"
    title="Basic Drawer"
    placement="right"
    @close="close"
  >
  <ImportTplConfig :drawerFile="drawerFile" :allRowData="allRowData" @close="close"/>
  </a-drawer>
</template>

<script>
  import ImportTplConfig from '@/views/ImportTplConfig/index.vue'

  export default {
    components: {
      ImportTplConfig
    },
    props: {
      isvisible: {
        type: Boolean,
        default: false
      },
      drawerFile: {
        type: Object,
        default: () => ({})
      },
      allRowData: {
        type: Array,
        default: () => [],
      },
    },
    methods: {
      close(){
        debugger
        this.$emit('changeIsvisible')
      }
    }
  }
</script>